<?php
namespace app\admin\controller;

use app\common\model\MemberLog as LogModel;
/**
 * 财务控制器
 */
class Finance extends Admin 
{
	/**
	 * 提现记录
	 * @return array
	 */
	public function cash(){
		$map['type'] = 0;
		$list = LogModel::where($map)->order('id desc')->paginate();

		$this->assign('list', $list);
		return $this->fetch();
	}

	/**
	 * 充值记录
	 * @return array
	 */
	public function recharge(){
		$map['type'] = 1;
		$list = LogModel::where($map)->order('id desc')->paginate();

		$this->assign('list', $list);
		return $this->fetch();
	}
}